<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="csrf-token" content="{{ csrf_token() }}" />
    <title>layout 后台大布局 - Layui</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 内容主体区域 -->
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>房源名单</legend>
    </fieldset>
    <div class="layui-form">
        <table class="layui-table">
            <colgroup>
                <col width="150">
                <col width="150">
                <col width="200">
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>房源地区</th>
                <th>房屋单元数</th>
                <th>房间号</th>
                <th>房间状态</th>
                <th>所属物业id</th>
                <th>房屋简介</th>
            </tr>
            </thead>
            <tbody>
            @foreach($list as $v)
                <tr>
                    <td>{{$v->house_region}}</td>
                    <td>{{$v->house_unit_num}}</td>
                    <td>{{$v->house_room}}</td>
                    <td>{{$v->is_lease}}</td>
                    <td>{{$v->property_id}}</td>
                    <td>{{$v->house_text}}</td>

                </tr>
            @endforeach

            </tbody>
        </table>
    </div>



</div>
</div>
<script src="/layui/layui.js"></script>
<script src="/js/jq.js"></script>
<script>
    function sale_status(s_status,s_id) {
        var _token = $('#_token').val();
        var data = new FormData();
        data.append('sale_status',s_status);
        data.append('sale_id',s_id);
        data.append('_token',_token);
        $.ajax({
            type:"post",
            url:"{{url('/admin/review_res')}}",
            data:data,
            cache: false,
            processData: false,
            contentType: false,
            success:function(msg){
                if(msg==1){
                    window.location.href = 'http://www.cucurbit.com/index/review';//登录成功跳转
                }else{
                    window.location.href = 'http://www.cucurbit.com/index/review';//登录成功跳转
                }
            },
        });
    }
</script>
</body>
</html>